package com.wwj.airline.Controller;

import com.wwj.airline.Dao.AirWayRepository;
import com.wwj.airline.pojo.AirWay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

@RestController
public class FlightController {

    @GetMapping("/")
    public ModelAndView index(){
        ModelAndView modelAndView = new ModelAndView("index");
        return modelAndView;
    }

    @GetMapping("/flight")
    public ModelAndView flight(){
        ModelAndView modelAndView = new ModelAndView("flight");
        return modelAndView;
    }

    @GetMapping("/flightSeat")
    public ModelAndView Seat(){
        ModelAndView modelAndView = new ModelAndView("flightSeat");
        return modelAndView;
    }
}
